package com.angel.core.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.angel.core.util.Pager;

public interface BaseMapper<T extends BaseModel> {
	List<Map<String, Object>> findAll(T record);

	int insert(T record);

	int updateByPrimaryKeySelective(T record);

	T selectByPrimaryKey(Integer id);
	
	int insertAll(List<T> list);
	
	List<Map<String, Object>> findAllByParam(@Param("record")T record, @Param("pager")Pager pager);
}
